import React from 'react';
import { Route } from 'react-keeper'

import YwhXj from './xj';
import YwhList from './list';
import YwhTp from './tp';
import YwhOrg from './org';
import YwhMember from './org/member';

const YwhHome = (cb) => {
  require.ensure([], () => cb(require('./PageYwhHome')), 'ywh')
};

export default {
  route: () => (
    <Route loadComponent={ YwhHome } path='/ywh'>
      <YwhList.route/>
      <YwhXj.route/>
      <YwhTp.route/>
      <YwhOrg.route/>
      <YwhMember.route/>
    </Route>
  )
};
